﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace ZHDJ.MobileInterface
{
    /// <summary>
    /// MobileInterfaceService 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    [System.Web.Script.Services.ScriptService] 
    public class LoginScoreInterfaceService : System.Web.Services.WebService
    { 
        [WebMethod]
        public string AddLoginScore(string userID, string systemID)
        {
            if (systemID != "CA71380DF0D240889F9D98FEF2A221F8")
                return "没有授权";

            return InterfaceHelper.ScoreManageZS("BaseScoreLogin", "0", "", userID, "", ""); 
        }

        [WebMethod]
        public DataSet GetUserInfo(string systemID)
        {
            if(systemID != "CA71380DF0D240889F9D98FEF2A221F8")
                return null;

            return InterfaceHelper.GetAllUserByBranch("a.LoginID as UserID,a.UserName, a.BranchID, b.BranchName, a.IdentityCard ", "CA71380DF0D240889F9D98FEF2A221F8"); 
        }
    }
}
